﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="PokerEnReseau.DemarrageApplication"
	x:Name="Window"
	Title=""
	Width="800" Height="800" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" WindowStyle="None" AllowsTransparency="True" Background="{x:Null}" MouseLeftButtonDown="Window_MouseLeftButtonDown" Opacity="1" WindowStartupLocation="CenterScreen" FontFamily="Kristen ITC" Icon="/PokerEnReseau;component/Images/PokerEnReseau.ico">
	<Window.Resources>            
		<ResourceDictionary>            
			<Style x:Key="BoutonValider" BasedOn="{x:Null}" TargetType="{x:Type Button}">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type Button}">
							<Grid x:Name="grid">
								<Image Source="Images\JetonBleu.png" Stretch="Fill" x:Name="image"/>																
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF" x:Name="textBlock" d:IsHidden="True">
									<InlineUIContainer>
										<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" OpacityMask="#FF000000"/>
									</InlineUIContainer></TextBlock>
							</Grid>
							<ControlTemplate.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="BitmapEffect" TargetName="grid">
										<Setter.Value>
											<OuterGlowBitmapEffect GlowColor="#FFFFFFFF" GlowSize="15"/>
										</Setter.Value>
									</Setter>
								</Trigger>
								<Trigger Property="IsEnabled" Value="False">
									<Setter Property="Opacity" Value="0.5"/>
								</Trigger>								
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>			
			<Style x:Key="BoutonReplay" BasedOn="{x:Null}" TargetType="{x:Type Button}">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type Button}">
							<Grid x:Name="grid">
								<Image Source="Images\JetonVert.png" Stretch="Fill" x:Name="image"/>																
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF" x:Name="textBlock" d:IsHidden="True">
									<InlineUIContainer>
										<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" OpacityMask="#FF000000"/>
									</InlineUIContainer></TextBlock>
							</Grid>
							<ControlTemplate.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="BitmapEffect" TargetName="grid">
										<Setter.Value>
											<OuterGlowBitmapEffect GlowColor="#FFFFFFFF" GlowSize="15"/>
										</Setter.Value>
									</Setter>
								</Trigger>
								<Trigger Property="IsEnabled" Value="False">
									<Setter Property="Opacity" Value="0.5"/>
								</Trigger>								
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<Style x:Key="BoutonAnnuler" BasedOn="{x:Null}" TargetType="{x:Type Button}">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type Button}">
							<Grid x:Name="grid">
								<Image Source="Images\JetonRouge.png" Stretch="Fill" x:Name="image"/>																
								<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF" x:Name="textBlock" d:IsHidden="True" FontFamily="{DynamicResource FontePr}">
									<InlineUIContainer>
										<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" OpacityMask="#FF000000"/>
									</InlineUIContainer></TextBlock>
							</Grid>
							<ControlTemplate.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Setter Property="BitmapEffect" TargetName="grid">
										<Setter.Value>
											<OuterGlowBitmapEffect GlowColor="#FFFFFFFF" GlowSize="15"/>
										</Setter.Value>
									</Setter>
								</Trigger>								
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>			
		</ResourceDictionary>
	</Window.Resources>

	<Grid x:Name="LayoutRoot" Height="800" Width="800">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Ellipse Margin="0,0,0,0" Stroke="#FF000000" Width="700" Height="700" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.9">
			<Ellipse.BitmapEffect>
				<OuterGlowBitmapEffect GlowColor="#FF000000" GlowSize="45" Noise="0.2" Opacity="0.9"/>
			</Ellipse.BitmapEffect>
			<Ellipse.Fill>
				<SolidColorBrush Color="#FF05662A"/>
			</Ellipse.Fill>
		</Ellipse>
		<Canvas Margin="210,120,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
			<TextBlock Height="52.8" TextWrapping="Wrap" Text="Poker Texas Hold'em" FontSize="30" Width="373.036" Canvas.Left="16"/>
			<TextBlock Height="30.4" TextWrapping="Wrap" Width="85.6" FontSize="16" Canvas.Left="238.94" Canvas.Top="56.8">
			<Run Language="fr-fr" Text="by Pico"/></TextBlock>
			<Border Height="127.4" Width="78.096" Canvas.Left="45.864" Canvas.Top="86.6">
				<Grid>
					<Image Source="Images\CoeurDix.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="imgDix" Height="93">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Image.RenderTransform>
						<Image.Clip>
							<PathGeometry>
								<PathFigure IsClosed="True" StartPoint="-0.400000000000006,2.95166666666668">
									<BezierSegment Point1="-0.400000000000006,1.2948124171743" Point2="0.943145750507614,-0.0483333333333178" Point3="2.59999999999999,-0.0483333333333178" IsSmoothJoin="True"/>
									<LineSegment Point="74.6,-0.0483333333333178" IsSmoothJoin="True"/>
									<BezierSegment Point1="76.2568542494924,-0.0483333333333178" Point2="77.6,1.2948124171743" Point3="77.6,2.95166666666668" IsSmoothJoin="True"/>
									<LineSegment Point="77.6,89.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="77.6,91.6085209161591" Point2="76.2568542494924,92.9516666666667" Point3="74.6,92.9516666666667" IsSmoothJoin="True"/>
									<LineSegment Point="2.59999999999999,92.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="0.943145750507614,92.9516666666667" Point2="-0.400000000000006,91.6085209161591" Point3="-0.400000000000006,89.9516666666667" IsSmoothJoin="True"/>
								</PathFigure>
							</PathGeometry>
						</Image.Clip>
					</Image>
					<Image Source="Images\CoeurValet.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="imgValet" Height="93">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="50" Y="0"/>
							</TransformGroup>
						</Image.RenderTransform>
						<Image.Clip>
							<PathGeometry>
								<PathFigure IsClosed="True" StartPoint="-0.400000000000006,2.95166666666668">
									<BezierSegment Point1="-0.400000000000006,1.2948124171743" Point2="0.943145750507614,-0.0483333333333178" Point3="2.59999999999999,-0.0483333333333178" IsSmoothJoin="True"/>
									<LineSegment Point="74.6,-0.0483333333333178" IsSmoothJoin="True"/>
									<BezierSegment Point1="76.2568542494924,-0.0483333333333178" Point2="77.6,1.2948124171743" Point3="77.6,2.95166666666668" IsSmoothJoin="True"/>
									<LineSegment Point="77.6,89.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="77.6,91.6085209161591" Point2="76.2568542494924,92.9516666666667" Point3="74.6,92.9516666666667" IsSmoothJoin="True"/>
									<LineSegment Point="2.59999999999999,92.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="0.943145750507614,92.9516666666667" Point2="-0.400000000000006,91.6085209161591" Point3="-0.400000000000006,89.9516666666667" IsSmoothJoin="True"/>
								</PathFigure>
							</PathGeometry>
						</Image.Clip>
					</Image>
					<Image Source="Images\CoeurDame.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="imgDame" Height="93">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="100" Y="0"/>
							</TransformGroup>
						</Image.RenderTransform>
						<Image.Clip>
							<PathGeometry>
								<PathFigure IsClosed="True" StartPoint="-0.400000000000006,2.95166666666668">
									<BezierSegment Point1="-0.400000000000006,1.2948124171743" Point2="0.943145750507614,-0.0483333333333178" Point3="2.59999999999999,-0.0483333333333178" IsSmoothJoin="True"/>
									<LineSegment Point="74.6,-0.0483333333333178" IsSmoothJoin="True"/>
									<BezierSegment Point1="76.2568542494924,-0.0483333333333178" Point2="77.6,1.2948124171743" Point3="77.6,2.95166666666668" IsSmoothJoin="True"/>
									<LineSegment Point="77.6,89.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="77.6,91.6085209161591" Point2="76.2568542494924,92.9516666666667" Point3="74.6,92.9516666666667" IsSmoothJoin="True"/>
									<LineSegment Point="2.59999999999999,92.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="0.943145750507614,92.9516666666667" Point2="-0.400000000000006,91.6085209161591" Point3="-0.400000000000006,89.9516666666667" IsSmoothJoin="True"/>
								</PathFigure>
							</PathGeometry>
						</Image.Clip>
					</Image>
					<Image Source="Images\CoeurRoi.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="imgRoi" Height="93">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="150" Y="0"/>
							</TransformGroup>
						</Image.RenderTransform>
						<Image.Clip>
							<PathGeometry>
								<PathFigure IsClosed="True" StartPoint="-0.400000000000006,2.95166666666668">
									<BezierSegment Point1="-0.400000000000006,1.2948124171743" Point2="0.943145750507614,-0.0483333333333178" Point3="2.59999999999999,-0.0483333333333178" IsSmoothJoin="True"/>
									<LineSegment Point="74.6,-0.0483333333333178" IsSmoothJoin="True"/>
									<BezierSegment Point1="76.2568542494924,-0.0483333333333178" Point2="77.6,1.2948124171743" Point3="77.6,2.95166666666668" IsSmoothJoin="True"/>
									<LineSegment Point="77.6,89.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="77.6,91.6085209161591" Point2="76.2568542494924,92.9516666666667" Point3="74.6,92.9516666666667" IsSmoothJoin="True"/>
									<LineSegment Point="2.59999999999999,92.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="0.943145750507614,92.9516666666667" Point2="-0.400000000000006,91.6085209161591" Point3="-0.400000000000006,89.9516666666667" IsSmoothJoin="True"/>
								</PathFigure>
							</PathGeometry>
						</Image.Clip>
					</Image>
					<Image Source="Images\CoeurAs.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="imgAs" Height="93">
						<Image.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="200" Y="0"/>
							</TransformGroup>
						</Image.RenderTransform>
						<Image.Clip>
							<PathGeometry>
								<PathFigure IsClosed="True" StartPoint="-0.400000000000006,2.95166666666668">
									<BezierSegment Point1="-0.400000000000006,1.2948124171743" Point2="0.943145750507614,-0.0483333333333178" Point3="2.59999999999999,-0.0483333333333178" IsSmoothJoin="True"/>
									<LineSegment Point="74.6,-0.0483333333333178" IsSmoothJoin="True"/>
									<BezierSegment Point1="76.2568542494924,-0.0483333333333178" Point2="77.6,1.2948124171743" Point3="77.6,2.95166666666668" IsSmoothJoin="True"/>
									<LineSegment Point="77.6,89.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="77.6,91.6085209161591" Point2="76.2568542494924,92.9516666666667" Point3="74.6,92.9516666666667" IsSmoothJoin="True"/>
									<LineSegment Point="2.59999999999999,92.9516666666667" IsSmoothJoin="True"/>
									<BezierSegment Point1="0.943145750507614,92.9516666666667" Point2="-0.400000000000006,91.6085209161591" Point3="-0.400000000000006,89.9516666666667" IsSmoothJoin="True"/>
								</PathFigure>
							</PathGeometry>
						</Image.Clip>
					</Image>
				</Grid>
			</Border>
			<Button Style="{DynamicResource BoutonValider}" Height="126" Content="Démarrer" IsDefault="True" Width="126.36" x:Name="btnDemarrer" Click="btnDemarrer_Click" Canvas.Left="-50.4" Canvas.Top="425.2"/>							
			<Button Style="{DynamicResource BoutonAnnuler}" Width="126" Height="126" Content="Quitter" IsCancel="True" x:Name="btnQuitter" Canvas.Left="303.836" Canvas.Top="425.2"/>
			<Button Style="{DynamicResource BoutonReplay}" Width="101.4" Height="101.4" Content="Rejouer" x:Name="btnReplay" Canvas.Left="144.4" Canvas.Top="498.6" Click="btnReplay_Click"/>
			<Label Height="25.96" Width="104.393" Content="Nom du joueur" x:Name="lblNomJoueur"  Canvas.Left="29.871" Canvas.Top="225"/>
			<TextBox Height="26" TextChanged="txtNomJoueur_TextChanged" x:Name="txtNomJoueur" Text="" TabIndex="0" Width="158.007" Canvas.Left="192.533" Canvas.Top="227"/>
			<ComboBox x:Name="cboLangue" SelectionChanged="cboLangue_SelectionChanged" TabIndex="1" Width="158.007" Height="26" Canvas.Left="192.533" Canvas.Top="267.2" />
			<GroupBox x:Name="grpAcces" Header="Accès"  Height="112.6" Width="324.669" Canvas.Left="29.871" Canvas.Top="297.96">
				<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="0.383*"/>
						<ColumnDefinition Width="0.617*"/>
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="0.464*"/>
						<RowDefinition Height="0.536*"/>
					</Grid.RowDefinitions>
					<RadioButton IsChecked="False" Margin="8,0,0,0" TabIndex="2" Content="Héberger" HorizontalAlignment="Left" VerticalAlignment="Center" x:Name="rbHeberger" Checked="rbHeberger_Checked"/>
					<RadioButton TabIndex="3" VerticalAlignment="Center" Content="Rejoindre" HorizontalAlignment="Left" Margin="8,0,0,0" Grid.Row="1" x:Name="rbRejoindre" Checked="rbRejoindre_Checked" IsChecked="True"/>
					<ComboBox AllowDrop="False" ForceCursor="False" IsEditable="True" IsEnabled="True" Margin="0,-8.017,8,0" OverridesDefaultStyle="False" TabIndex="4" x:Name="cboAdresse" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="26" Grid.Column="1" Grid.Row="1" d:LayoutOverrides="Height" />
					<CheckBox Margin="0,0,8.777,-0.017" VerticalAlignment="Bottom" Height="21.6" Content="En tant que spectateur" Grid.Column="1" Grid.Row="1" x:Name="chkSpectateur"/>
				</Grid>
			</GroupBox>
			<Label Height="26.76" x:Name="lblLangue" Width="84.393" Content="Langue :" Canvas.Left="29.871" Canvas.Top="267.2"/>
		</Canvas>
	</Grid>
</Window>